package com.zy.config;

import com.zy.aspect.MyAspect;
import com.zy.service.SomeService;
import com.zy.service.impl.SomeServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;


/**
 * @author LittleDesire
 * @description
 * @date 2022-04-06 周三 18:03
 * @since 17
 */
@Configuration
@EnableAspectJAutoProxy
public class WebInit  {
    @Bean
    public SomeService someService() {
        return new SomeServiceImpl();
    }

    @Bean
    public MyAspect myAspect() {
        return new MyAspect();
    }

}
